package com.guigu.gulicommon.constant.enumes.serch;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 排序条件常量枚举类
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/8/17 20:27
 */
@Getter
@AllArgsConstructor
public enum SortCondition {
    SKU_PRICE_ASC_OR_DESC("skuPrice_asc/desc", "价格升序/降序"),
    SALE_CONT_ASC_OR_DESC("saleCount_asc/desc", "销量升序/降序"),
    HOT_SCORE_ASC_OR_DESC("hotScore_asc/desc", "热度升序/降序");;

    @EnumValue
    private final String value;
    @JsonValue
    private final String name;

}
